local projectId = KEYS[1]
local hashField = KEYS[2]
local hashValue = ARGV[1]

if redis.call('EXISTS', projectId) == 1 then
    return redis.call('HSET', projectId, hashField, hashValue)
end

return 0